home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DJGPP / DJSRC111.ZIP / go32 / makefile < prev    next >
Makefile  |  1993-11-27  |  3KB  |  160 lines

  1. # History:25,17
  2.  
  3. .SUFFIXES: .obj .c .asm
  4.  
  5. AFLAGS = /mx /zi /zd
  6. CFLAGS = -ms -M -G- -O -Z -a -1 -f- -d -w -g12
  7.  
  8. CC=tcc
  9. ASM=tasm
  10.  
  11. .c.obj:
  12.     $(CC) $(CFLAGS) -DFOR_GO32=1 -c $*.c
  13.  
  14. .asm.obj:
  15.     $(ASM) $(AFLAGS) /DFOR_GO32=1 $*;
  16.  
  17. END =
  18.  
  19. GRDRIVER = vesadrv.vdr
  20.  
  21. OBJS =\
  22.     control.obj \
  23.     dalloc.obj \
  24.     doutils.obj \
  25.     dpmi.obj \
  26.     dpmisim.obj \
  27.     event.obj \
  28.     evintr.obj \
  29.     exphdlr.obj \
  30.     extdebug.obj \
  31.     graphics.obj \
  32.     grprot.obj \
  33.     mono.obj \
  34.     mswitch.obj \
  35.     npx.obj \
  36.     paging.obj \
  37.     tables.obj \
  38.     ustat.obj \
  39.     utils.obj \
  40.     valloc.obj \
  41.     vga.obj \
  42.     xms.obj \
  43.     vcpi.obj \
  44.     driver.obj
  45.  
  46. all : \
  47.     go32t.exe \
  48.     stub.exe \
  49.     coff2exe.exe \
  50.     exe2coff.exe \
  51.     stubedit.exe \
  52.     $(END)
  53.  
  54. go32t.exe : $(OBJS) stamp.exe
  55.     $(CC) -ls $(CFLAGS) -ego32t.exe *.obj
  56.     stamp go32t.exe
  57.  
  58. stamp.exe : stamp.c
  59.     tcc stamp.c
  60.     @del stamp.obj
  61.  
  62. stub.exe: stub.c gotypes.h stubinfo.h fixstub.exe
  63.     $(CC) $(CFLAGS) stub.c
  64.     @del stub.obj
  65.     -tdstrip stub
  66.     fixstub
  67.  
  68. fixstub.exe : fixstub.c stubinfo.h gotypes.h
  69.     $(CC) $(CFLAGS) fixstub.c
  70.     @del fixstub.obj
  71.     -tdstrip fixstub
  72.  
  73. coff2exe.exe : coff2exe.c stubbyte.h
  74.     $(CC) $(CFLAGS) coff2exe.c
  75.     @del coff2exe.obj
  76.     -tdstrip coff2exe
  77.  
  78. stubbyte.h : bin2byte.exe stub.exe
  79.     bin2byte stub.exe stub_bytes stubbyte.h
  80.  
  81. bin2byte.exe : bin2byte.c
  82.     $(CC) bin2byte.c
  83.     @del bin2byte.obj
  84.     -tdstrip bin2byte
  85.  
  86. exe2coff.exe : exe2coff.c
  87.     $(CC) $(CFLAGS) exe2coff.c
  88.     @del exe2coff.obj
  89.     -tdstrip exe2coff
  90.  
  91. stubedit.exe : stubedit.c gotypes.h stubinfo.h
  92.     $(CC) $(CFLAGS) stubedit.c
  93.     @del stubedit.obj
  94.  
  95. driver.h: $(GRDRIVER) driver.ext bin2byte.exe
  96.     copy /b $(GRDRIVER)+driver.ext driver.tmp
  97.     bin2byte driver.tmp DRIVER_CODE driver.h
  98.     del driver.tmp
  99.  
  100. clean :
  101.     del *.obj
  102.     del *.map
  103.     del *.exe
  104.     del stubbyte.h
  105.     del driver.h
  106.  
  107. # DEPENDENCIES
  108.  
  109. coff2exe.obj : stubbyte.h
  110.  
  111. control.obj : gotypes.h gdt.h idt.h tss.h valloc.h utils.h graphics.h mono.h vcpi.h paging.h dpmi.h extdebug.h exphdlr.h dalloc.h mswitch.h xms.h npx.h stubinfo.h proginfo.h control.h
  112.  
  113. dalloc.obj : gotypes.h valloc.h dalloc.h mono.h control.h
  114.  
  115. driver.obj : driver.h
  116.  
  117. event.obj : eventque.h
  118.  
  119. exphdlr.obj : gotypes.h gdt.h idt.h tss.h utils.h paging.h npx.h mono.h vcpi.h graphics.h dpmi.h extdebug.h ustat.h dpmisim.h dalloc.h valloc.h control.h eventque.h
  120.  
  121. extdebug.obj : gotypes.h aout.h extdebug.h dpmi.h paging.h tss.h exphdlr.h mswitch.h utils.h gdt.h eventque.h
  122.  
  123. fixstub.obj : gotypes.h stubinfo.h
  124.  
  125. graphics.obj : gotypes.h paging.h graphics.h tss.h gdt.h grdriver.h
  126.  
  127. mono.obj : mono.h
  128.  
  129. paging.obj : gotypes.h paging.h graphics.h tss.h idt.h gdt.h valloc.h dalloc.h utils.h aout.h mono.h vcpi.h dpmi.h extdebug.h exphdlr.h stubinfo.h proginfo.h control.h
  130.  
  131. stub.obj : gotypes.h stubinfo.h
  132.  
  133. stubedit.obj : gotypes.h stubinfo.h
  134.  
  135. ustat.obj : ustat.h
  136.  
  137. valloc.obj : gotypes.h valloc.h xms.h mono.h vcpi.h utils.h paging.h stubinfo.h proginfo.h control.h mswitch.h
  138.  
  139. xms.obj : xms.h
  140.  
  141. utils.obj : gotypes.h tss.h gdt.h utils.h dpmi.h mswitch.h exphdlr.h
  142.  
  143. doutils.obj : segdefs.inc tss.inc gdt.inc idt.inc
  144.  
  145. dpmi.obj : segdefs.inc tss.inc
  146.  
  147. dpmisim.obj : segdefs.inc tss.inc gdt.inc idt.inc
  148.  
  149. grprot.obj : segdefs.inc tss.inc gdt.inc idt.inc
  150.  
  151. tables.obj : segdefs.inc tss.inc gdt.inc idt.inc
  152.  
  153. vcpi.obj : segdefs.inc vcpi.inc
  154.  
  155. vga.obj : segdefs.inc
  156.  
  157. mswitch.obj : segdefs.inc tss.inc gdt.inc idt.inc vcpi.inc
  158.  
  159. npx.obj : segdefs.inc tss.inc gdt.inc idt.inc
  160.